package com.google.guava.eventbus.test;

import com.google.guava.eventbus.internal.MySubscribe;

/**
 * @author fuc
 * @create 2020-10-08
 */
public class MySimpleListener {

  @MySubscribe
  public void test1(String x) {
    System.out.println("MySimpleListener===test1===" + x);
  }

  @MySubscribe(topic = "test-topic")
  public void test2(Integer x) {
    System.out.println("MySimpleListener===test2===" + x);
  }

  @MySubscribe(topic = "exception-topic")
  public void test3(Integer x) {
    throw new RuntimeException();
  }
}
